#ifndef SERIALCONNECTION_H
#define SERIALCONNECTION_H

#include <QThread>
#include <QtSerialPort/QSerialPort>
#include <QtSerialPort/QSerialPortInfo>

class serialConnection : public QThread
{
    Q_OBJECT
public:
    serialConnection();
    ~serialConnection();

public:
    QSerialPort *serPort;
    QString str;
    int errno;

private:
    void initLink();
    QString findserial();

signals:

    
public slots:
    void readData();
    void handleError(QSerialPort::SerialPortError);
    
};

#endif // SERIALCONNECTION_H
